<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="./base.css">
  <style>
    .box1{
      width: 400px;
      height: 360px;
      border: 1px solid black;
    }
    .box-t{
      width: 360px;
      height: 50px;
     /* border: 1px solid black; */
      display: flex;
      margin: 0 auto;
    }
    .box-t>span{
      display: block;
      width: 90px;
      height: 48px;
      font-size: 14px;
      color: cornflowerblue;
      cursor:pointer;
      /* background-color: crimson; */
      text-align: center;
      line-height: 48px;
      border:1px solid darkslategray;
    }
    .box-t>span:hover{
      font-size: 18px;
      color: darkblue;
      font-weight:600;
      border-bottom:none ;
      box-shadow: darkgrey 10px 10px 30px 5px ;
    }
    a>img{
      width: 400px;
      height: 240px;
      display: block;
      margin: 0 auto;
    }
    p{
      
      text-indent: 2em;
    }
    .box1{
      margin: 0 auto;
    }
  </style>
</head>
<body>
  <div class="box1">
    <div class=" box-t">
      <span class="span1">电影票</span>
      <span class="span2">飞度</span>
      <span class="span3">之梦想</span>
      <span class="span4"> 海涛</span>
    </div>
    <div class="box-b-1">
      <a href="#"><img src="./11.jpg" alt=""></a>
      <p class="font36"><a href="#" class="c000">超豪华~~~~</a></p>
      <p class="font36"><a href="#" class="c000">跨种族~~~~</a></p>
    </div>
    <div class="box-b-2" style="display: none;">
      <a href="#"><img src="./22.png" alt=""></a>
    </div>
    <div class="box-b-3" style="display: none;">
      <a href="#"><img src="./33.jpg" alt=""></a>
      <p class="font36"><a href="#" class="c000">巴拉巴拉</a></p>
      <p class="font36"><a href="#" class="c000">跨种族~~~~</a></p>
    </div>
    <div class="box-b-4" style="display: none;">
      <a href="#"><img src="./44.jpg" alt=""></a>
      <p class="font36"><a href="#" class="c000">阿巴阿巴</a></p>
      <p class="font36"><a href="#" class="c000">跨种族~~~~</a></p>
    </div>
  </div>
<script src="./jquery.js"></script>
<script>
$(".span1").hover(()=>{
$(".box-b-1").show()
$(".box-b-2").hide()
$(".box-b-3").hide()
$(".box-b-4").hide()
}
)
$(".span2").hover(()=>{
$(".box-b-1").hide()
$(".box-b-2").show()
$(".box-b-3").hide()
$(".box-b-4").hide()
}
)
$(".span3").hover(()=>{
$(".box-b-1").hide()
$(".box-b-2").hide()
$(".box-b-3").show()
$(".box-b-4").hide()
}
)
$(".span4").hover(()=>{
$(".box-b-1").hide()
$(".box-b-2").hide()
$(".box-b-3").hide()
$(".box-b-4").show()
}
)
// $(window).keydown(function(event){
// switch (event.which){
//   case(9):

// }
// var oSpan1=document.getElementsByClassName("span1")
// var oSpan2=document.getElementsByClassName("span2")
// var oSpan3=document.getElementsByClassName("span3")
// var oSpan4=document.getElementsByClassName("span4")
// var box1=document.getElementsByClassName("box-b-1")
// var box2=document.getElementsByClassName("box-b-2")
// var box3=document.getElementsByClassName("box-b-3")
// var box4=document.getElementsByClassName("box-b-4")
// var oSpan=document.querySelectorAll("span")
// var oDiv=document.querySelectorAll("span")

// console.log(oSpan2);
// oSpan1.onclick=()=>{
//   console.log(oSpan1);
// console.log(box1);
// }
// oSpan1.onclick=function(){
//   box1.style.display="none"
//   box2.style.display="block"
//   box3.style.display="none"
//   box4.style.display="none"
// }
</script>
</body>
</html>